﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using DAL;

namespace BLL
{
  public  class TaiKhoanBLL
    {
      public static List<TaiKhoan> LayTatCa()
      {
          return TaiKhoanDAL.LayTatCa();
      }
      public static bool Them(TaiKhoan tk)
      {
          return TaiKhoanDAL.Them(tk);
      }
      public static bool Sua(TaiKhoan tk)
      {
          return TaiKhoanDAL.Sua(tk);
      }
      public static bool Xoa(string Id)
      {
          return TaiKhoanDAL.Xoa(Id);
      }
      public static TaiKhoan LayID(string Id)
      {
          return TaiKhoanDAL.LayID(Id);
      }
      public static bool DangKy(TaiKhoan tk)
      {
          return TaiKhoanDAL.DangKy(tk);

      }
       public static List<TaiKhoan> Paging(string page, out int howManyPages)
       {
           return TaiKhoanDAL.Paging(page, out howManyPages);
       }
       public static List<TaiKhoan> TimKiem(string tentaikhoan, string hoten)
       {
           return TaiKhoanDAL.TimKiem(tentaikhoan, hoten);
       }
       public static List<TaiKhoan> TimKiemHoTen(string hoten)
       {
           return TaiKhoanDAL.TimKiemHoTen(hoten);
       }
      public static List<TaiKhoan> TimKiemTenTK(string tentaikhoan)
      {
          return TaiKhoanDAL.TimKiemTenTK(tentaikhoan);
      }
    }
}
